import request from '@/utils/request'

// 查询引入管台账列表
export function listPipe(query) {
  return request({
    url: '/business/pipe/list',
    method: 'get',
    params: query
  })
}

// 查询引入管台账详细
export function getPipe(id) {
  return request({
    url: '/business/pipe/' + id,
    method: 'get'
  })
}

// 新增引入管台账
export function addPipe(data) {
  return request({
    url: '/business/pipe',
    method: 'post',
    data: data
  })
}

// 修改引入管台账
export function updatePipe(data) {
  return request({
    url: '/business/pipe',
    method: 'put',
    data: data
  })
}

// 删除引入管台账
export function delPipe(id) {
  return request({
    url: '/business/pipe/' + id,
    method: 'delete'
  })
}
